Skip to content

Use SHA256 instead of MD5 for fingerprints#162

Closed
thyssentishman wants to merge 1 commit into
TerminalStudio:masterfrom
thyssentishman:master
Closed

Use SHA256 instead of MD5 for fingerprints#162
thyssentishman wants to merge 1 commit into
TerminalStudio:masterfrom
thyssentishman:master

Conversation

@thyssentishman

Copy link
Copy Markdown
Contributor

This is OpenSSH's default since OpenSSH 6.8. This makes it possible to verify fingerprints with onVerifyHostKey when logging into servers running this or higher versions of OpenSSH.

vicajilau added a commit that referenced this pull request Jun 14, 2026
Preserve author of PR #162: cherry-pick and revert
@vicajilau vicajilau closed this Jun 14, 2026
@vicajilau

vicajilau commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Many thanks for this @thyssentishman !! It has been used on #163

GT-610 added a commit to lollipopkit/dartssh2 that referenced this pull request Jun 15, 2026
Resolved conflicts while merging TerminalStudio/dartssh2 master into lollipopkit/dartssh2 master.

Key upstream changes:

- Fixed AES-GCM cipher encryption/decryption sequence number/nonce counter resetting during key exchanges (TerminalStudio#165).

- BREAKING: SSHHostkeyVerifyHandler now receives OpenSSH-style SHA256:<base64> fingerprints instead of raw MD5 digests (TerminalStudio#162).

- Added regression tests for SHA256 host key fingerprint formatting.

Preserved local changes:

- ChaCha20-Poly1305 packet encryption/decryption support.

- Encrypt-then-MAC (ETM) algorithm support.

- Server-initiated and byte-limit rekeying with SSH_MSG_IGNORE CBC padding messages.

- Host-based authentication challenge helper.

- Constant-time MAC comparison.

- Local onVerifyHostKey handler compatibility and extended handshake error assertions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants